package com.aboo.config;

import com.aboo.domain.AdminClient;
import com.aboo.domain.AdminProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({AdminProperties.class})
public class AdminConfig {

    AdminProperties adminProperties;

    @Bean
    public AdminClient adminClient(AdminProperties adminProperties) {
        return new AdminClient(adminProperties);
    }

}
